package com.redis.demo;

import com.redis.demo.api.SubscribeMsg;
import com.redis.demo.listen.Listen;
import com.redis.demo.utils.RedisUtils;

import redis.clients.jedis.Jedis;

public class Subscribe implements SubscribeMsg{

	public void subscribe(String topic) {
		Jedis jedis = RedisUtils.getJedis();
		Listen li = new Listen();
		jedis.subscribe(li, topic);
	}
}
